﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Basic.master" AutoEventWireup="true" CodeFile="Detail.aspx.cs" Inherits="Basic" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">





</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FullBody" Runat="Server">    

    <asp:Label ID="lbMSP" runat="server" Visible="false" Text=""></asp:Label>
    <asp:Label ID="lbGiaHienTai" runat="server" Visible="false" Text=""></asp:Label>
    <asp:Label ID="lbError" runat="server" Visible="false" Text=""></asp:Label>
    
    <div class="detail">
        <div class="name"> Sản phẩm: 
            <asp:Repeater ID="rptName" runat="server">
                <ItemTemplate>
                    <%#Eval("TenSanPham")%>
                </ItemTemplate>
            </asp:Repeater>        
        </div>
        <div class="preview">   
            <div id="capture">Hình ảnh</div>
            <asp:Repeater ID="rptLargePic" runat="server">
                <ItemTemplate>
                    <div class="large"><img src="./productImgs/<%#Eval("MaTaiKhoan")%>/<%#Eval("HinhAnh")%>" alt="hinh anh san pham" /></div>
                </ItemTemplate>
            </asp:Repeater>
            
            <asp:Repeater ID="rptPictures" runat="server">
                <ItemTemplate>
                    <div class="small"><img src="./productImgs/<%#Eval("MaTaiKhoan")%>/<%#Eval("TenMT")%>" alt="hinh anh san pham" /></div>
                </ItemTemplate>
            </asp:Repeater>
            <div class="vide"></div>
        </div>
        
        <asp:DataList ID="DataListDetail" runat="server" >
        <ItemTemplate>      
            <div class="thongtin">
                <span id="capture">Chi tiết</span>
                <div class="item">
                    <span id="label">Giá khởi điểm</span>
                    <span id="value"><%#Eval("GiaKhoiDiem")%></span>
                </div>
                <div class="item">
                    <span id="label">Giá hiện tại</span>
                    <span id="value"><%#Eval("GiaHienTai")%></span>
                </div>
                <div class="item">
                    <div id="label">Số lượt đấu giá</div>
                    <div id="value"><%#Eval("SoLuotDauGia")%></div>
                </div>
                <div class="item">
                    <span id="label">Ngày hết hạn</span>
                    <span id="value"><%#Eval("NgayHetHan")%></span>
                </div>
                <div class="item">
                    <div id="label">Người bán</div>
                    <div id="value">
                        <asp:LinkButton runat="server" ID="userNameLink" PostBackUrl="~/Default1.aspx" Text='<%#Eval("TenTaiKhoan")%>'> </asp:LinkButton>
                        <asp:Label ID="txtProductID" Visible="false" runat="server" Text='<%#Eval("MaSanPham")%>'></asp:Label>
                    </div>
                </div>
                <div class="item">
                    <span id="label">Điểm tin cậy bán</span>
                    <span id="value"><%#Eval("DiemTinCayBan")%></span>
                </div>   
                <div class="item">
                    <span id="label">Ngày đăng</span>
                    <span id="value"><%#Eval("ngayDang")%></span>
                </div> 
            </div>            
            <div class="mota"> 
                <span id="capture" style="width:103.8%; margin:-10px 0 0 -10px;">Mô tả sản phẩm: </span> 
                <%#Eval("MoTaSanPham")%>                
            </div>  
        </ItemTemplate>
        </asp:DataList>
                
        <div class="chitietdatgia">
            <span id="capture">Chi tiết đặt giá</span>
            <asp:Repeater ID="rptChiTietDatGia" runat="server">
                <ItemTemplate>
                    <span id="label"><%#Eval("TenTaiKhoan")%></span>
                    <span id="value"><%#Eval("GiaGiaoDich")%></span>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        
        <div class="datgia">
            <div class="left70">
                Đặt giá<br />
                <asp:TextBox ID="txtDatGia" CssClass="align_center" BackColor="CornflowerBlue" runat="server" Width="80%" Height="30px"  Font-Size="15"></asp:TextBox>
            </div>
            <div class="right30">
                <div class="bidButton">
                    <span style="font-weight:bold; margin-top:7px;"><a href="#" onclick="javascript:__doPostBack('datgia','')">OK</a></span>
                </div>
            </div>
        </div>  
            <div class="vide"></div>                  
    </div>
    
    <div class="vide"></div>    
    
    <div class="comment">
        <span id="capture">Comment:</span>
        <asp:DataList ID="DataListComment" runat="server" >
            <ItemTemplate>
                <div class="item">
                    <span id="name"><%#Eval("TenTaiKhoan")%></span>
                    <span id="ngayComment"><%#Eval("NgayComment")%></span>
                    <%#Eval("NoiDungComment")%>
                </div>
        </ItemTemplate>               
        </asp:DataList>
        
        <asp:TextBox ID="txtComment" runat="server" MaxLength="500" TextMode="MultiLine" Width="99%"></asp:TextBox>
        <asp:Button id="btComment" runat="server" OnClick="btComment_Click" Text="Bình luận"/>        
    </div>
    
    <div class="goiy">
        <span id="capture">Sản phẩm cùng loại</span>
        <asp:DataList ID="DataListSameKind" runat="server" RepeatColumns="5">
            <ItemTemplate>
                <a href='<%# Eval("MaSanPham", "Detail.aspx?MSP={0}") %>'>
                    <img src="./productImgs/<%#Eval("MaTaiKhoan")%>/<%#Eval("HinhAnh")%>" alt="sản phẩm cùng loại" />
                </a>
            </ItemTemplate>
        </asp:DataList>
    </div>
    
    
    
    
    
    

    
    

</asp:Content>

